#ifndef DB_H
#define DB_H

#include "mysql.h"
#include "mysqld_error.h"

#define DB_MYSQL MYSQL *
#define DB_ROW  MYSQL_ROW
#define DB_RESULT  MYSQL_RES *

char db_host[64];
char db_user[64];
char db_passwd[128];
char db_name[64];
char db_port[64];
/* 用来接收配置文件的解析结果并返回 */
//char *db_conf[5];
/* 用来返回配置文件的解析结果 */
char *conf_ret[5];

/*
#define DB_USER  "zabbix"
#define DB_PASSWD "zabbix"
#define DB_PORT  3306
#define DB_HOST "192.168.10.153"
#define DB_NAME  "test"
*/
#endif
